﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        struct PersonStruct
        {
            public string name;
            public int tel;
            public string addess;
        }

        static void Main(string[] args)
        {

            PersonStruct p1 = new PersonStruct();
            p1.name = "张三";
            p1.tel = 123456;
            p1.addess = "龙岩";

            PersonStruct p2 = new PersonStruct();
            p2.name = "李四";
            p2.tel = p1.tel;
            p2.addess = p1.addess;

            Console.WriteLine("姓名：{0}，电话：{1}，地址：{2}。",p1.name,p1.tel,p1.addess);

            PersonClass p3 = new PersonClass("王五",456789,"龙岩");

            PersonClass p4 = new PersonClass("赵六", 456789, "龙岩");
        }
    }
}
